<template>
  <div>
    <div class="x1">
      <div class="x3" v-for="(key, index) in data" :key="index">
        <div class="x4"><img :src="key.img" alt="" /></div>
        <div class="x5">
          <b>{{ key.b }}</b>
          <p>{{ key.p }}</p>
          <span>{{ key.span }}</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: ["data"],
};
</script>

<style lang="scss" scoped>
* {
  font-size: 0.6rem;
  margin: 0;
  padding: 0;
}

.x2 {
  width: 388px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.x2 b {
  margin-left: 20px;
  font-size: 20px;
}

.x2 span {
  font-weight: 700;
  margin-right: 20px;
  color: #6b4cff;
}

.x3 {
  width: 348px;
  height: 130px;
  /* background-color: skyblue; */
  margin: 10px auto;
  border: 1px solid #ececec;
  border-radius: 5px;
  padding: 10px;
  display: flex;
}

.x4 img {
  width: 120px;
  height: 130px;
  border-radius: 5px;
}

.x5 {
  margin-left: 15px;
  width: 200px;
  height: 130px;
}

.x3 p {
  margin-top: 10px;
  font-size: 14px;
  color: #969996;
}

.x3 span {
  display: block;
  margin-top: 20px;
  font-size: 14px;
  color: #969996;
}
</style>